Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.98 KB

throw_handler.rst

File metadata and controls

41 lines (36 loc) · 1.98 KB

throw_handler

The throw_handler simply throws a ztd::text::encoding_error </api/encoding_error> as an exception. This should only EVER be used for pre-verified, trusted input sources, debugging purposes, or similar; malformed text is a common enough occurrence that throwing errors by default or using this handler by default is a bad idea in almost every way.

Throwing on encoding, decoding, and other errors can easily result in Denial of Service target points if this is used in conjunction with user or untrusted input sources.

ztd::text::throw_handler

ztd::text::throw_handler_t